$def with(acts, form)
$var title: 0106666
$var gmap: 1

<div class="left_side">
    <div id="map" style="width: 580px; height: 500px"></div>
            <script type="text/javascript">
            //<![CDATA[

            function load() {
              if (GBrowserIsCompatible()) {
                var map = new GMap2(document.getElementById("map"));

                map.setUIToDefault();
                map.addControl(new GMapTypeControl());
                map.setCenter(new GLatLng(39.917, 116.397), 12);

                function createMarker(point, name, time, id) {
                    var marker = new GMarker(point);
                    GEvent.addListener(marker, "click", function() {
                            var arr = new Array(
                                "<div class=\"pl\">活动: <a href=\"/activity?aid=" + 
                                id + "\">" + name + "</a>" + 
                                "<br> 时间:" + time + "</div>");
                            var str = arr.join("")
                            marker.openInfoWindowHtml(str);
                            });
                    return marker;
                }

                $for i in acts:
                    var point = new GLatLng($i['coordx'], $i['coordy']);
                    map.addOverlay(createMarker(point, "$i['subject']", "$i['gathertime']", "$i['id']"));
              }
            }

            //]]>
            </script>
</div>
<div class="right_side">
    <div id="login">
        <form method="post" action="/login">
            $:form.render()
            <input style="width:100px" type="submit" value="登录"/> 
            <span style="float: right; margin-right: 10px"><a href="/forget_passwd">忘记密码</a></span>
        </form>
    </div>
    <div id="update_log">
        <div class="title">
            <span> update log </span> <span style="font-size:12px;color:#666666"> @2010-9-5</span>
        </div>
        <div class="content">
            <ul>
                <li> > 增加意见反馈，点击右下角意见反馈进入 </li>
                <li> > 更多的新鲜事显示 </li>
                <li> > 新鲜事与地图分离 </li>
                <li> > 修正空话题也能提交的错误</li>
                <li> > 增加google map支持 </li>
                <li> > 添加活动详细地址时可直接拖动地图上的图标生成 </li>
            </ul>
        </div>
    </div>
</div>

